|
|
As a newcomer to raytracing and Povray, I am starting with simple objects. I
have an ultimate goal to recreate my office, but right now I am focusing on
recreating my desk.
I am wondering what is the best way to go about setting sizes of objects,
etc...
Should I do this: (where the box is 12 feet wide, .5 foot high, 6 feet deep)
box {
<-6, -.25, -3>,
<6, .25, 3>
texture ....
}
or something like (where surface is 36 inches deep, 1 inch high, 72 inches
long)
#declare foot = 3;
#declare inch = foot / 12;
#local Surface_Depth = 36*inch;
#local Surface_Height = 1*inch;
#local Surface_Length = 72*inch;
#local Surface = box {
<-(Surface_Length / 2), -(Surface_Height/2), -(Surface_Depth/2)>,
<(Surface_Length / 2), (Surface_Height/2), (Surface_Depth/2)>
texture ...
}
Basically, I am trying to standardize the way I recreate life like
objects -- at least square ones.... should I bother with this, or should I
go about just "guessing" at where they go... for example, I am currently
battling with trying to position the drawers beneath my desk properly....
the "bothersome" code is as follows, to correctly position the drawers (+
the frame around the drawers)
//Drawer Frames
object {Drawer_Frame translate
<-(Surface_Length/2)+(Left_Drawers_Left_Surface_Distance)+(Drawer_Frame_Leng
th/2), -(Surface_Height/2 + Drawer_Frame_Height/2), -(Surface_Depth/2 -
Left_Drawers_Front_Surface_Distance)+(Drawer_Frame_Depth/2)>}
//Drawers
object {Left_Drawers translate
< -(Surface_Length/2)+(Left_Drawers_Left_Surface_Distance)+(Drawer_Frame_Len
gth/2) + (Drawer_Frame_Inside_Length/2 -
Drawer_MainShape_Length/2) -.0035, -(Surface_Height/2 +
Drawer_Frame_Height/2), -(Surface_Depth/2 -
Left_Drawers_Front_Surface_Distance)+(Drawer_Frame_Inside_Depth/2) - .045>}
And it still dosent work correctly yet... I had to add in .0035 just to get
the drawers aligned properly (probably due to measurement inaccuracy)....
Any suggestions?
Thanks
(From a newbie!)
Post a reply to this message
|
|